package com.example.mallorder.fegin;

import com.common.utils.R;
import com.example.mallorder.controller.vo.OrderItemSpuInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author guanglin.ma
 * @date 2023-11-26 16:54
 */
@FeignClient(name = "mall-product")
public interface ProductFeginService {

    @GetMapping("/mallproduct/brand/brand-list")
    public R brandList();

    @RequestMapping("/mallproduct/spuinfo/getOrderItemSpuInfoBySpuId/{spuIds}")
    public List<OrderItemSpuInfoVO> getOrderItemSpuInfoBySpuId(@PathVariable("spuIds") List<Long> spuIds);
}
